import request from '@/utils/request'

// 查询流程表单列表
export function listFlowableForm(query) {
  return request({
    url: '/system/flowable/form/list',
    method: 'get',
    params: query
  })
}

//通过流程id获取流程表单信息
export function getFlowableFormByDeployId(deployId) {
  return request({
    url: '/system/flowable/form/getByDeployId',
    method: 'get',
    params: {
      deployId
    }
  })
}

// 查询流程表单详细
export function getFlowableForm(formId) {
  return request({
    url: '/system/flowable/form/' + formId,
    method: 'get'
  })
}

// 新增流程表单
export function addFlowableForm(data) {
  return request({
    url: '/system/flowable/form',
    method: 'post',
    data: data
  })
}

// 修改流程表单
export function updateFlowableForm(data) {
  return request({
    url: '/system/flowable/form',
    method: 'put',
    data: data
  })
}

// 删除流程表单
export function delFlowableForm(formId) {
  return request({
    url: '/system/flowable/form/' + formId,
    method: 'delete'
  })
}
